<template>
  <div>
    <el-card class="box-card">
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="用户名">
          <el-input v-model="form.userName"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input type="password" v-model="form.password"></el-input>
        </el-form-item>
      </el-form>
      <el-button @click="login">登录</el-button>
      <el-button @click="register">注册</el-button>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        userName: "",
        password: "",
      },
    };
  },
  methods:{
    login(){
        
    },
    register(){
      this.$router.push("RegisterView")
    }
  }
};
</script>

<style>
.box-card {
  margin-left: 30%;
  margin-right: 30%;
  margin-top: 10%;
}
</style>